pull: add support for tombstone commits
authorGiuseppe Scrivano <gscrivan@redhat.com>
Wed, 28 Oct 2015 09:07:51 +0000 (10:07 +0100)
committerGiuseppe Scrivano <gscrivan@redhat.com>
Tue, 3 Nov 2015 08:53:38 +0000 (09:53 +0100)
commit76c5cc07db1a8ac4bd37ecc5f50c84ac4b42e886
tree438f0bd9aac9109eb7f81d6e63a0ee9925b2a88c
parent048c27588abec700fa3ffa9edc2914f4600d2696
pull: add support for tombstone commits

Add a new object type: OSTREE_OBJECT_TYPE_TOMBSTONE_COMMIT that is
used when a commit was intentionally removed.

If the remote repository doesn't use tombstone commits, do not fail on
a missing commit (change 0b795785dd81cd1e8c2c5960f0959740bce72a51).

When the remote repository uses tombstones, if a commit cannot be
found, check if the tombstone file is present and fail if it is not
present.

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
src/libostree/ostree-core.c
src/libostree/ostree-core.h
src/libostree/ostree-repo-pull.c